<div id="bentrai">
  <div id="main-content">
    <div id="deal-buy" class="box">
      <div class="box-top"></div>
      <div class="box-content">
        <div class="head">
          <h2>Thông tin đặt hàng
            <!--Your Purchase-->
          </h2>
        <p>Tên người liên hệ</p>
        <p>
                <?php echo $mail_fullname; ?>
	</p>
        <p>Email người liên hệ</p>
        <p>
                <?php echo $mail_email; ?>
	</p>

        <p>Địa chỉ</p>
        <p>
                <?php echo $address; ?>
	</p>
        <p>Địện thoại</p>
        <p>
                <?php echo $phone; ?>
	</p>
        <p>Nội dung liên hệ:</p>
        <p>
                <?php echo $mail_content; ?>
	</p>
        </div>
        <form action="" method="post" name="frmCart" id="frmCart">
        <div class="sect">
          <table class="order-table">
            <tbody>
              <tr class="sects">
                <th class="deal-buy-desc"></th>
                <th class="deal-buy-desc">Sản phẩm</th>
                <th class="deal-buy-quantity">Số lượng</th>
                <th class="deal-buy-price">Ðơn giá (<span class="money">VNÐ</span>)</th>
                <th class="deal-buy-total">Thành tiền (<span class="money">VNÐ</span>)</th>
              </tr>
              <?php if($cart->getTotalItems() > 0){ ?>
              <?php foreach($cart->getItems() AS $item): ?>
              <tr>
                <td class="deal-buy-desc"><a target="blank" href="<?php echo $item->url; ?>"><img src="<?php echo $item->image; ?>" /></a></td>
                <td class="deal-buy-desc"><a target="blank" href="<?php echo $item->url; ?>"><?php echo $item->product_name; ?></a></td>
                <td class="deal-buy-quantity">
                    <?php echo $item->quantity; ?>
                </td>
                <td class="deal-buy-price"><span id="deal-buy-price"><?php echo number_format(sprintf("%01.2f", $item->price), 0, ',', '.'); ?> VNĐ
                  </span></td>
                <td class="deal-buy-total"><span id="deal-buy-total"><?php echo number_format(sprintf("%01.2f", $item->price * $item->quantity), 0, ',', '.'); ?> VNĐ</span>
                  </td>
              </tr>
              <?php endforeach; ?>
              <?php } ?>
              <tr class="order-total">
                <td class="deal-buy-desc"></td>
                <td class="deal-buy-quantity"></td>
                <td class="deal-buy-prices" nowrap="nowrap"><strong>Tổng số tiền</strong></td>
                <td class="deal-buy-totals" colspan="2"><strong id="deal-buy-total-t"><?php echo number_format(sprintf("%01.2f", $cart->getTotalPrice()), 0, ',', '.'); ?> </strong>&nbsp;<span class="money">VNÐ</span></td>
              </tr>
            </tbody>
          </table>
          <div class="field mobile">&nbsp;</div>
        </div>
        </form>
      </div>
    </div>
    <div class="box-bottom"></div>
  </div>
</div>
